package org.yray.sip.packet;


import lombok.Data;
import org.yray.sip.utils.ByteUtils;

@Data
public class SendNotifyPacket extends BasePacket {
    private static byte[] HEADER;
    private String mediaCode;
    private String msg;
    private String msg2;

    static {
        HEADER=new byte[16];
        System.arraycopy(HEADER_REQ,0,HEADER,0,14);
        System.arraycopy(ByteUtils.uIntToByteWord(HEX_MSG_REQ_NOTIFY),0,HEADER,14,2);
    }

    public SendNotifyPacket(String key, String mediaCode, String msg, String msg2)
    {
        this.key=key;
        this.msgType=MsgType.MSG_REQ_NOTIFY;
        this.mediaCode=mediaCode;
        this.msg=msg;
        this.msg2=msg2;
    }
}
